package com.digua.base.socket.response

import com.digua.base.socket.dispatcher.IResponseDispatcher
import com.digua.base.socket.dispatcher.ResponseDelivery


interface Response<T> {
    /**
     * 获取响应的数据
     */
    fun getResponseData(): T?

    /**
     * 设置响应的数据
     */
    fun setResponseData(responseData: T)

    fun onResponse(dispatcher: IResponseDispatcher?, delivery: ResponseDelivery?)

    /**
     * 回收资源
     */
    fun release()
}